/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package physics;

import boot.MainBoot;
import com.jme3.light.AmbientLight;
import com.jme3.light.DirectionalLight;
import com.jme3.math.ColorRGBA;
import com.jme3.math.Vector3f;

/**
 *
 * @author adamgovan
 */
public class Lighting {
    
    AmbientLight ambientLighting;
    DirectionalLight directionalLighting;
   
    public Lighting(){
        
    }
    
    //does initial lighting. needs tweaking to work effectively
    public void setUpLight() {
        // We add light so we see the scene
        ambientLighting = new AmbientLight();
        ambientLighting.setColor(ColorRGBA.White.mult(1.3f));
        
        directionalLighting = new DirectionalLight();
        directionalLighting.setColor(ColorRGBA.White);
        directionalLighting.setDirection(new Vector3f(2.8f, -2.8f, -2.8f).normalizeLocal());
        
        MainBoot.getMain().getRootNode().addLight(ambientLighting);
        MainBoot.getMain().getRootNode().addLight(directionalLighting);
    }

    public AmbientLight getAmbientLighting() {
        return ambientLighting;
    }

    public DirectionalLight getDirectionalLighting() {
        return directionalLighting;
    }
    
    
}
